﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TTCN_QLDiemC3.MyUserControl.UCHienThi;
using BLL;

namespace TTCN_QLDiemC3.MyUserControl.UCMenu
{
    public partial class UCChucNangThongKe : UserControl
    {
        public UCChucNangThongKe(String tengv, String quyen)
        {
            InitializeComponent();
            lblHoTen.Text = tengv;
            lblQuyenHan.Text = quyen;
        }

        private void btnDanhSachMon_Click(object sender, EventArgs e)
        {
            UCThongKeDiemHK ucchucnanggv = new UCThongKeDiemHK();
            Form form = this.ParentForm;
            ControlAccess.ShowConTrol(form, ucchucnanggv, "grbHienThiChucNang"); 
        }

        private void btnThemMon_Click(object sender, EventArgs e)
        {
            UCThongKeDiemHKTheoLop ucchucnanggv = new UCThongKeDiemHKTheoLop();
            Form form = this.ParentForm;
            ControlAccess.ShowConTrol(form, ucchucnanggv, "grbHienThiChucNang"); 
        }

        private void button1_Click(object sender, EventArgs e)
        {
            UCThongKeDiemTKCaNam ucchucnanggv = new UCThongKeDiemTKCaNam();
            Form form = this.ParentForm;
            ControlAccess.ShowConTrol(form, ucchucnanggv, "grbHienThiChucNang"); 
        }

        private void button3_Click(object sender, EventArgs e)
        {
            UCThongKeDiemTKCaNamTheoMon ucchucnanggv = new UCThongKeDiemTKCaNamTheoMon();
            Form form = this.ParentForm;
            ControlAccess.ShowConTrol(form, ucchucnanggv, "grbHienThiChucNang"); 
        }
    }
}
